<?php

$this->menu = array(
		array('label'=>'Back', 'url'=>array($this->backurl),
            'linkOptions'=> array('class' => 'icon icon-arrow-left6 tb-gray'),
        ),
        array('label'=>'Edit', 'url'=>array('update','id'=>$model->id),
            'linkOptions'=> array('class' => 'icon icon-pencil4 tb-gray'),
        ),
        array('label'=>'Unlock', 'url'=>array('unlock','id'=>$model->id), 'visible'=>$model->locked,
              'linkOptions'=> array('class' => 'icon icon-unlocked2 tb-gray')
        ),
        array('label'=>'Lock', 'url'=>array('lock','id'=>$model->id), 'visible'=>!$model->locked,
            'linkOptions'=> array('class' => 'icon icon-lock tb-gray')
        ),
        array('label'=>'Delete', 'url'=>array('delete','id'=>$model->id),
            'linkOptions'=> array('class' => 'icon icon-cancel-circle2 tb-gray','onClick'=>'return confirm("Do you really want to delete this account ?")'),
        ),
	);
?>

    <h2 class="form-header">
        <?php
        echo CHtml::encode($this->pageTitle);
        ?>

    </h2>

<?php

$this->widget('zii.widgets.CDetailView', array(
	'data' => $model,
	'attributes' => array(
        'id',
        'username',
        'fullname',
        'email',
        array(
            'name' => 'userRole',
            'type' => 'raw',
            'value' => $model->userRole !== null ? GxHtml::encode(GxHtml::valueEx($model->userRole)) : '',
        ),
        'last_login',
        'lock_counter',
        'locked:boolean',
	),
));

?>
